package com.rfs.jvm;

import java.util.List;

/**
 * @author renfushuai
 * @date 2022/7/4
 */
public class HeapOOM {
    static class OOMObject {

    }

    public static void main(String[] args) {
        List<OOMObject> list = new java.util.ArrayList<>();
        while (true) {
            list.add(new OOMObject());
        }
    }
}
